/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

header {
    background-color: #ffffff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

#searchInput {
    width: 80%;
    max-width: 600px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 1rem;
}

#searchButton {
    padding: 0.75rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 1rem;
}

/* 文章列表样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.article-item {
    display: flex;
    gap: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-item img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.article-content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.article-content p {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* 加载动画 */
.loading {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: 2rem;
}

/* 错误提示 */
.error {
    text-align: center;
    font-size: 1.2rem;
    color: #ff4d4f;
    margin-top: 2rem;
}

/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    border-top: 1px solid #eee;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.nav-item.active {
    color: #1890ff;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
    }

    .article-item img {
        width: 100%;
        height: auto;
    }
}